package Function;

public class Unit {
	function f = null;
	Character c = null;

	public Unit(char c) {
		this.c = c;
	}

	public Unit(function f) {
		this.f = f;
	}

	public boolean isFunction() {
		return f != null;
	}

	public boolean isOperator() {
		return c != null;
	}

	public void setFunction(function ff) {
		f = ff;
	}

	public void setOperator(Character cc) {
		c = cc;
	}

	public function getFunction() {
		return f;
	}

	public char getOperator() {
		return c;
	}
}
